#!/bin/sh

run_triton(){
    if [ ! -d "/media/upan/" ]; then
        return 1
    fi

    triton_file="/media/upan/triton"

    if [ ! -d "$triton_file" ]; then
        return 2
    fi

    rm -rf /media/upan/triton/*.log

    nohup /media/upan/triton/runservice.sh >/dev/null 2>&1 & 
}


run_triton
